package com.jsmtr.rms.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

@Entity
@Table(name = "PaperTopic")
public class PaperTopic {
    /**
     * ID
     */
    @Id
    @Column(nullable = false, length = 50)
    private String id;

    /**
     * 所属试卷ID
     */
    @Column(nullable = false, length = 50)
    private String pid;

    /**
     * 所属知识点ID
     */
    @Column(nullable = false, length = 50)
    private String kid;

    /**
     * 题型
     */
    @Column(nullable = false, length = 20)
    private String type;

    /**
     * 题目ID
     */
    @Column(nullable = false, length = 50)
    private String tid;

    /**
     * 题目序号
     */
    @Column(nullable = true)
    private Integer num;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getKid() {
        return kid;
    }

    public void setKid(String kid) {
        this.kid = kid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }
}
